package ui.loading
{
	import flash.display.DisplayObject;
	import flash.events.Event;
	import flash.text.TextField;
	
	import interfaces.ILoading;
	
	public class TextLoading implements ILoading
	{
		private var m_loading:TextField;
		private var m_start:Boolean;
		
		public function TextLoading()
		{
			m_loading = new TextField();
		}
		
		public function showLoading(per:int):void
		{
			m_loading.visible = true;
			m_loading.text = String(per);
		}
		
		public function hide():void
		{
			m_loading.visible =  false;
		}
	
		public function get target():DisplayObject
		{
			return m_loading;
		}
	}
}